package com.blb.community.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("zy_repair_new")
public class ZyRepairNew {

  @TableId(type = IdType.AUTO)
  private Long repairId;
  private String repairState;
  private String doorTime;
  private String doorDate;
  private String repairType;
  private Long assignmentId;
  private Long masterId;
  private String remark;
  private Long ownerId;
  private Long delFlag;
  private String repairContent;
  private Long communityId;
  private String address;
  private LocalDate expectDate;
  private String expectTime;
  private Float rate;
  @JsonDeserialize(using = LocalDateTimeDeserializer.class)
  @JsonSerialize(using = LocalDateTimeSerializer.class)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime repairTime;
  @JsonDeserialize(using = LocalDateTimeDeserializer.class)
  @JsonSerialize(using = LocalDateTimeSerializer.class)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime repairCompleteTime;
  private String photo;
  private String repairOrderNumber;
  @TableField(exist = false)
  private ZyOwner zyOwner;
  @TableField(exist = false)
  private String CommunityName;
  @TableField(exist = false)
  private String stateName;
  @TableField(exist = false)
  private String typeName;
  @TableField(exist = false)
  private String masterName;
  @TableField(exist = false)
  private String masterPhone;




}
